home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Turnbull China Bikeride
/
Turnbull China Bikeride - Disc 1.iso
/
ARGONET
/
PD
/
PROGRAMMING
/
DESKLIBC
/
SOURCES.ZIP
/
DeskLib
/
!DLSources
/
Libraries
/
File
/
c
/
Exists
< prev
next >
Wrap
Text File
|
1994-06-08
|
1KB
|
30 lines
/*
#### # # # #
# # # # # The FreeWare C library for
# # ## ### # # # # ### RISC OS machines
# # # # # # # # # # # ___________________________________
# # #### ### ## # # # #
# # # # # # # # # # Please refer to the accompanying
#### ### #### # # ##### # ### documentation for conditions of use
________________________________________________________________________
File: File.Exists.c
Author: Copyright © 1993,1994 Jason Williams, Jason Howat
Version: 1.01 (08 Jun 1994)
Purpose: Checks if a given file exists (can be read)
Note that directories cannot be read, so will be returned as
non existent.
*/
#include "DeskLib:File.h"
#include "kernel.h"
extern BOOL File_Exists(char *filename)
{
_kernel_osfile_block osfile;
return (_kernel_osfile(17, filename, &osfile) == 1);
}